package com.stillalive.springaop.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;

@Aspect
@Slf4j
//@Component
public class AspectDemo2 {


    @Before("execution(* com.stillalive.springaop.aspect.*.*(..))")
    public void doBefore(){
        log.info("AspectDemo2 doBefore....");
    }

    @After("execution(* com.stillalive.springaop.aspect.*.*(..))")
    public void deAfter(){
        log.info("AspectDemo2 deAfter....");
    }

}
